package com.football.springboot.service;

import com.football.springboot.entity.League;
import com.baomidou.mybatisplus.extension.service.IService;
import com.football.springboot.entity.Team;
import io.swagger.models.auth.In;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 李越
 * @since 2023-02-17
 */
public interface ILeagueService extends IService<League> {
    //编辑参加联赛的球队
    void setLeagueTeam(Integer leagueId,List<Integer> teamIds);

    //查看联赛绑定的球队id
    List<Integer> getLeagueTeam(Integer leagueId);

    //查看该联赛的参赛球队team
    List<Team> findTeamByLeagueId(Integer leagueId);

}
